package kassiopeia.agent.infrastructure;

import org.springframework.stereotype.Component;
import kassiopeia.plugin.Event;

@Component
public class SimpleHashProvider implements HashProvider {

    @Override
    public long getEventHash(Event event) {
        return event.getBody().hashCode();
    }

    @Override
    public long getAgentHash(String agentId) {
        return agentId.hashCode();
    }

}
